const config = (myenv) => {
  let apiHost = '';
  switch (myenv) {
    // 开发环境 dev，测试环境 test
    case 'dev':
    case 'test':
      apiHost = 'http://43.243.130.132:6789';
      //   apiHost = 'http://192.168.0.187:6789';
      break;
    case 'prod':
      apiHost = 'http://43.243.130.132:6789';
      break;
    // 默认为开发/测试 环境
    default:
      apiHost = 'http://43.243.130.132:6789';
      break;
  }
  return apiHost;
};

module.exports = config;
